You are here: Statements and Functions > CalDay()
Syntax samples
CALDAY()
The CALDAY() function corresponds to the weekday of the calendar date you defined as part of the warm-up period or simulation begin date under simulation options. Since CALDAY() resets with the advent of a new week, every weekday will return the same value (i.e., Wednesday will always return a value of 3).
Any logic.
Please note
CALDAY() works only when you select calendar date in the simulation options dialog.
Example
Suppose that shipment arrival types vary from day to day. Since Monday’s Shipment_Type_A arrival patterns are unique, you will need to use a distribution specific to those patterns.
IF CALDAY()=1 THEN
BEGIN
Shipment_Type_A =
Monday_Distribution_A
USE Forklift FOR Unload_Time
END
CALDOM(), CALHOUR(), CALMIN(), CALMONTH(), and CALYEAR().